@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <div class="row">
                <div class="col-sm-6 b-r">
                            <#input id="id" name="id" value="${item.id}" disabled="disabled" underline="true"/>
                            <#input id="name" name="故障名" value="${item.name}" underline="true"/>
                            <#input id="desc" name="故障详情" value="${item.desc}" underline="true"/>
                    <#select id="deviceName" name="故障设备" value="${item.deviceName}" underline="true">
                    <option value="${item.deviceName}">${item.deviceName}</option>
                    @for(device in list){
                    @if(item.deviceName != device.name){
                    <option value=${device.name}>${device.name}</option>
                    @}
                    @}
                </#select>
                </div>

                <div class="col-sm-6">
                    <#select id="status" name="上报状态" value="${item.status}" disabled="disabled" underline="true">
                        <option value="拒绝">拒绝</option>
                        <option value="处理">处理</option>
                        <option value="完成">完成</option>
                    </#select>
                    <#avatar id="pic" name="故障图片" underline="true" avatarImg="${item.pic}"/>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="FaultInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="FaultInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/biz/fault/fault_info.js"></script>
@}
